using QFramework;
using UnityEngine;

namespace ProjectSurvivor
{
    public abstract class GameplayObject : ViewController
    { 
        public abstract Collider2D collision2D { get; }
        private void OnBecameVisible()
        {
            if (collision2D != null)
            {
                 collision2D.enabled = true;
            }
           
        }
        private void OnBecameInvVisible()
        {
             if (collision2D != null)
            {
                 collision2D.enabled = false;
            }
           
        }
    }
}